<%@ page contentType="text/html; charset=utf-8" %>
<%@include file="/common/taglibs.jsp"%>

	
<form name='form1' method='post' action='${pageContext.request.contextPath}/admin/system/cache.shtml' onsubmit="return validateCallback(this, navTabAjaxDone);">
	
	<div class="pageContent" layoutH="36">
		<table class="tlist " width="100%" >
		<thead>
			<tr class="title">
				<td width='50%' colspan="2">
					<a >　 Java VM （Java虚拟机）内存</a>  <a href="">  </a>
				</td>					
			</tr>
		</thead>
		
		<tbody>				
			<tr class=row style="background-color: #fafafa">
				<td height="175" align="center" style="padding-left: 10px">
						<table width="277" border=0>
							<tr>
								<td width="135"><font size="-1">已用内存:</font></td>
								<td width="132"><font size="-1">${usedMemory } MB</font></td>
							</tr>
							<tr>
								<td><font size="-1">内存总量:</font></td>
								<td><font size="-1">${totalMemory } MB</font></td>
							</tr>
							<tr>
								<td><font size="-1">最大内存</font></td>
								<td><font size="-1">${maxMemory } MB</font></td>
							</tr>
							<tr>
								<td><font size="-1">处理器数</font></td>
								<td><font size="-1">${availableProcessors } 个</font></td>
							</tr>
						</table>
						<br/>
						<table border=0>
							<tr>
							<td>
								<table bgcolor="#000000" cellpadding="1" cellspacing="0" border="0" width="200" align=left>
									<td>
									<table bgcolor="#000000" cellpadding="1" cellspacing="1" border="0" width="100%">
										<c:forEach var="d" begin="0" end="${num_blocks }" varStatus="var">
											<c:choose>
												<c:when test="${(var.index*(100/num_blocks)) < free }">
													<td bgcolor="#00ff00" width="${100/num_blocks }%"><img src="${pageContext.request.contextPath}/images/blank.gif" width="1" height="15" border="0"></td>
										
												</c:when>
												<c:otherwise>
													<td bgcolor="#006600" width="${100/num_blocks }%"><img src="${pageContext.request.contextPath}/images/blank.gif" width="1" height="15" border="0"></td>
										
												</c:otherwise>
											</c:choose>
										</c:forEach>
									</table>
									</td>
								</table>
							</td>
							<td><font size="-1"> &nbsp;<b>${percentFree }% 空闲</b> </font> </td>
							</tr>
						</table>
						<br/>
				</td>
			</tr>
			<!-- Table Body End -->
			<!-- Table Foot -->
			<tr>
				<td class=tfoot align=right><DIV align=right> </DIV></td>
			</tr>
			<!-- Table Foot -->
		</tbody>
		</table>	
	</div>
	<div class="formBar">
		<ul>
			<li>
				<div class="buttonActive"><div class="buttonContent"><button type="submit" id="cropTd">垃圾收集</button></div></div>
			</li>
			<li>
				<a class="button" href="${pageContext.request.contextPath }/admin/system/showcache.shtml" target="navTab" rel="cache"><span>刷新</span></a>
			</li>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
			</li>
		</ul>
	</div>
</form>
